<script setup lang="ts">
import { useUserStore } from '@/stores'
const userStore = useUserStore()
</script>

<template>
  <div>App组件</div>

  <button
    @click="userStore.setUser({ token: '1', avatar: '1', mobile: '1', account: '1', id: '1' })"
  >
    登录
  </button>
  <button @click="userStore.delUser()">退出登录</button>

  <van-button type="primary">按钮</van-button>
  <div class="box"></div>
</template>

<style scoped>
.box {
  width: 100px;
  height: 100px;
  background-color: pink;
}
</style>
